using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Crossborder.Core.Core;
using Crossborder.Core.Dto;

namespace Crossborder.IService
{
    public interface IShoppingCartService : ITransient
    {
        /// <summary>
        /// 查询购物车
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<List<ShoppingCartDto>> GetShoppingCart(string userId);

        /// <summary>
        /// 写入购物车缓存
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task SetShoppingCart(string userId, ShoppingCartInputDto inputDto);
    }
}